<?php
/**
 * 部门模型
 * @author shipanpan
 *
 */
class Application_Model_Department extends Model_Base {

	/**
	 * 获取有仓库的部门
	 * @return boolean [description]
	 */
	public function hasWarehouse() {
		return $this->db()->fetchAll('select id,department_name from c_warehouse_dept where status=1');
	}
}